import logging
def log_weidu():
    logging.basicConfig(filename="weidudiansanglog.txt",
                    filemode='w+',
                    level=logging.DEBUG,
                    format="%(lineno)d***%(message)s***%(asctime)s***%(levelname)s")